package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author FCJ
 * @date 2020-01-05 11:50
 */
public interface OrderSettingDao {
    //添加OrderSetting
    public void addOrderSetting(OrderSetting orderSetting);
    //查询日期是否已经设置
    public int findCountByDate(Date date);
    //根据日期更新设置人数
    public void updateNumber(OrderSetting orderSetting);

    /**
     * 按月查询预约列表
     * @param date
     * @return
     */
    List<OrderSetting> findOrderListByMonth(Map date);

//根据日期查询当前日期是否设置过预约人数
    OrderSetting findByOrderDate(Date date);
//根据日期设置已预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);




}
